<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>${tenant.name!}-租户管理平台</title>
<link rel="stylesheet" type="text/css"
	href="/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="/easyui/themes/icon.css">
<script type="text/javascript" src="/easyui/jquery.min.js"></script>
<script type="text/javascript" src="/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="/res/App.js"></script>
<link rel="stylesheet" type="text/css" href="/res/App.css">
<script charset="utf-8" src="http://map.qq.com/api/js?v=2.exp"></script>
</head>
<body class="easyui-layout">
	<div data-options="region:'west',title:'功能列表',split:true"
		style="width: 180px;">
		<ul id="tree">
		</ul>
	</div>
	<div data-options="region:'center'" style="padding: 5px;" >
	<div id="tab-tools">
		当前账号：<select id="cc" class="easyui-combobox"  style="width:200px;" class="c" name="dept" data-options="
		url: '/commboxadmin',
		 method:'post',
		valueField:'id',
		textField:'text',
		panelHeight:'auto',
        onSelect: changeweixin
"> 
		</select>
		<a href="javascript:void(0)" class="easyui-splitbutton" data-options="menu:'#mm1',iconCls:'icon-help'" ></a>
		 <div id="mm1" style="width:150px;">
			<div data-options="iconCls:'icon-edit'" onclick="loadinfo($('#id_a_modifypwd'))">修改密码</div>
			<div data-options="iconCls:'icon-no'" onclick="logout()" >退出登陆</div>
		</div>
		<a href="/sec/index" title="修改密码" width="300" height="200" id="id_a_modifypwd" ></a>
	</div>
		<div id="tt" class="easyui-tabs" data-options="tools:'#tab-tools'" fit="true" border="false"  plain="true">
			</div>
	</div>
	<script language="javascript">
	
		function changeweixin(rec) {
			$.messager.confirm('切换微信账号？', '切换微信账号到'+rec.text+"?",
			function(r) {
				if (r) {
					document.location = 'welcome?id=' + rec.id;
				}
			});
		}

		$('#tree').tree( { 
			url : "/menu",
			onClick : treeonclick,
			onLoadSuccess:treeclickfirst
			});
		
		setInterval("$.get('/keepalive.shtml?'+new Date().getTime())",6000);
	</script>
	<div id="win"></div>
</body>
</html>